package com.library.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 至尊伍人组
 * @since 2018-09-30
 */
@Data
public class Booktype extends Model<Booktype> {

    private static final long serialVersionUID = 1L;

    /**
     * 图书种类编号
     */
    @TableId ( value = "typeId", type = IdType.AUTO )
    private Integer typeId;
    /**
     * 图书种类名
     */
    private String typeName;

    @Override
    protected Serializable pkVal() {
        return this.typeId;
    }

}
